package com.hsy.crm.web.web.finance;

import com.hsy.crm.web.domain.cm.Response;
import com.hsy.crm.web.domain.entity.FinOtherOrder;
import com.hsy.crm.web.domain.vo.finOtherOrder.FinOtherOrderInsertVo;
import com.hsy.crm.web.domain.vo.finOtherOrder.FinOtherOrderPageVo;
import com.hsy.crm.web.service.impl.FinOtherOrderService;
import com.hsy.crm.web.web.BaseAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/finOtherOrder")
public class FinOtherOrderAction extends BaseAction {

    @Autowired
    FinOtherOrderService finOtherOrderService;

    @RequestMapping("/insert")
    public String insert(FinOtherOrderInsertVo vo) {
        return Response.body(finOtherOrderService.insertFinOtherOrder(vo));
    }

    @RequestMapping("/update")
    public String update(FinOtherOrderInsertVo vo) {
        return Response.body(finOtherOrderService.updateFinOtherOrder(vo));
    }

    @RequestMapping("/delete")
    public String delete(FinOtherOrder finOtherOrder) {
        return Response.body(finOtherOrderService.deleteFinOtherOrder(finOtherOrder));
    }

    @RequestMapping("/select")
    public String select(FinOtherOrder finOtherOrder) {
        return Response.body(finOtherOrderService.select(finOtherOrder));
    }

    @RequestMapping("/getOrder")
    public String getOrder(FinOtherOrder finOtherOrder) {
        return Response.body(finOtherOrderService.getOrder(finOtherOrder));
    }

    @RequestMapping("/page")
    public String page(FinOtherOrderPageVo finOtherOrderPageVo) {
        return Response.body(finOtherOrderService.page(finOtherOrderPageVo));
    }

    @RequestMapping("/examine")
    public String examine(FinOtherOrder order) {
        return Response.body(finOtherOrderService.examine(order));
    }

    @RequestMapping("/invalid")
    public String doInvalid(FinOtherOrder order) {
        return Response.body(finOtherOrderService.doInvalid(order));
    }

}
